package by.abolut.carpool.dao.impl;

import by.abolut.carpool.dao.base.IBaseDAO;
import by.abolut.carpool.persistence.IBasePersistence;
import by.abolut.carpool.persistence.impl.XMLPersistence;

import java.util.List;

/**
 * Created by Andrey on 19.10.2014.
 */
public class BaseDAO<T> implements IBaseDAO<T> {

    IBasePersistence<T> xmlPersistence;

    public BaseDAO() {
        xmlPersistence = new XMLPersistence<T>();
    }

    @Override
    public void create(T object) {
        xmlPersistence.create(object);
    }

    @Override
    public void delete(T object) {

    }

    @Override
    public void update(T object) {

    }

    @Override
    public List<T> getAll() {
        return null;
    }
}
